import { request } from './request.js'
request.defaultData.baseUrl = 'http://cyjs.pzhkj.cn/'

export function getBraveList({ caipiao_id, qihao, dan, tuo, chu }) {
  return new Promise((resolve, reject) => {
    request
      .ajax({
        path: 'api/dantuo/stat',
        method: 'POST',
        data: {
          caipiao_id: 24,
          dan: 1,
          tuo: 2,
          chu: '1_2',
          qihao: 50,
        },
        afterAjax: res => {
          resolve(res)
        },
      })
      .catch(err => {
        reject(err)
      })
  })
}
